import request from '@/utils/request'
import {projectApiUrl} from '../config'
/**
 * 签约单位列表
 * @param parameter
 */
export function getContractUnitList(parameter){
  return request({
    url: projectApiUrl+'/contract-unit/query',
    method: 'post',
    data: parameter
  })
}

/**
 * 新增签约单位
 * @param data
 */
export function addContractUnit(data){
  return request({
    url: projectApiUrl+'/contract-unit/create',
    method: 'post',
    data: data
  })
}

/**
 * 签约单位删除
 * @param data
 */
export function delContractUnit(data){
  return request({
    url: projectApiUrl+'/contract-unit/batchDeleteContractUnit',
    method: 'post',
    data: data
  })
}

/**
 * 编辑项目类型
 * @param data
 */
export function editContractUnit(data){
  return request({
    url: projectApiUrl+'/contract-unit/edit',
    method: 'post',
    data: data
  })
}


